package com.game.service;

import com.game.service.app.Utils;
import com.game.service.define.RoomConfig;
import com.game.service.socket.FileUtils;
import com.game.service.socket.SocketServer;
import com.game.service.windows.Client;
import com.game.service.windows.LogWindows;

import static com.game.service.define.RoomConfig.*;

public class Main {
    //http://192.168.31.111:7456/?token=00&uid=18889051&language=zh_tw&liveid=10031&stream=10031_1726740988
    // https://testdxgame.hnthwj.com/h5GameTest/turntable/web-mobile/?token=00&uid=18889051&language=zh_tw&liveid=10031&stream=10031_1726740988
    public static void main(String[] args) {
        new Client();
        SocketServer.getKernel();
        String versionDesc = String.format("版本更新内容:%s,服务器地址:%s,  port:%s ,日志地址:%s",
                VersionDesc, URL, RoomConfig.PORT, RoomConfig.OutFilePath);
        LogWindows.getLogWindows().printToTextArea(versionDesc, Main.class);
        FileUtils.writeTxtToFile("版本信息,当前的版本信息:" + versionDesc, Utils.LogDate(), LOG_NAME_ROOM);
    }
}